﻿using Abp.Domain.Entities.Auditing;
using SingleUserMall.Authorization.Users;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SingleUserMall.Adverts
{
    public class AdvertRecord : FullAuditedEntity<long>
    {
        /// <summary>
        /// 用户id
        /// </summary>
        public long UserId { get; set; }
        [ForeignKey("UserId")]
        public virtual User User { get; set; }
        /// <summary>
        /// 广告id
        /// </summary>
        public long AdvertId { get; set; }
        [ForeignKey("AdvertId")]
        public virtual Advert Advert { get; set; }
        /// <summary>
        /// 观看时间
        /// </summary>
        public DateTime WatchDateTime { get; set; }
    }
}
